<#ibiztemplate>
TARGET=PSMODULE
</#ibiztemplate>
# ${item.getName()}(${item.getCodeName()})

  ${item.getMemo()}

## 实体关系
{% plantuml %}

package ${item.getName()} {

<#list sys.getAllPSDataEntities() as entity>
<#if (!entity.getPSSystemModule().isSubSysModule() && (item.getId() == entity.getPSSystemModule().getId()) )>
class ${entity.getLogicName()} {
}

</#if>
</#list>

<#list sys.getAllPSDERs() as der>
<#if ((item.getId() == der.getMajorPSDataEntity().getPSSystemModule().getId()) && (item.getId() == der.getMinorPSDataEntity().getPSSystemModule().getId()) )>
<#if der.getDERType() == 'DER1N'>
${der.getMajorPSDataEntity().getLogicName()} *-- ${der.getMinorPSDataEntity().getLogicName()} 
<#elseif der.getDERType() == 'DERINDEX'>
${der.getMajorPSDataEntity().getLogicName()} <|-- ${der.getMinorPSDataEntity().getLogicName()} 
<#elseif der.getDERType() == 'DERINHERIT'>
${der.getMajorPSDataEntity().getLogicName()} <|-- ${der.getMinorPSDataEntity().getLogicName()} 
</#if>


</#if>
</#list>

}

hide members

{% endplantuml %}


## 实体

| 实体编号    |    实体名称    |  实体类型     |  备注  |
| --------   |------------| -----   |  -------- | 
<#if sys.getAllPSDataEntities()??>
<#list sys.getAllPSDataEntities() as entity>
<#if (!entity.getPSSystemModule().isSubSysModule() && (item.getId() == entity.getPSSystemModule().getId()) )>
|${entity.getName()}|[${entity.getLogicName()}](${item.codeName?lower_case}/${entity.codeName}.md)|${srfcodelist2("DEType",entity.getDEType())}|&nbsp;${entity.getMemo()}|
</#if>
</#list>
</#if>